﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Windows.Forms;

using ZhimeiSoft.CharmManager.Client.Manager;
using ZhimeiSoft.CharmManager.Interface;
using ZhimeiSoft.CharmManager.DOL;

namespace ZhimeiSoft.CharmManager.ClientForms.Control.Scheduling
{
    
    public partial class PhoneCallList : UserControl
    {

        /// <summary>
        /// 已接来电
        /// </summary>
        private DataSet dsCalled = new DataSet();
        /// <summary>
        /// 用户信息
        /// </summary>
        private DataSet dsCustomInfo = new DataSet();

        public PhoneCallList()
        {
            InitializeComponent();


            string error = string.Empty;
            if (BussinessProxyManager.Instance != null)
            {
                BussinessProxyManager.Instance.QueryCustomState(DBEntityCustomInfo.ENUM_CSTATE.C0A, out dsCustomInfo, out error);
            }

            /*
            DataTable dtCalled = new DataTable();
            //来电客户姓名
            dtCalled.Columns.Add(new DataColumn("CUSTOMNAME", typeof(System.String)));
            //来电号码
            dtCalled.Columns.Add(new DataColumn("PHONENBR", typeof(System.String)));
            //来电时间
            dtCalled.Columns.Add(new DataColumn("CALLTIME", typeof(System.DateTime)));

            dsCalled.Tables.Add(dtCalled);

            gridCtrlCalled.DataSource = dsCalled;
             */
        }

        private void btnSetPort_Click(object sender, EventArgs e)
        {
            frmSetComPort frmComPort = new frmSetComPort();
            if (frmComPort.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

        }

        
    }
}
